package com.gdwstudy.exception;

/**
 * @author 关道伟
 * @version 1.0
 */
public class Exception01 {
    public static void main(String[] args) {
        int d1 = 100;
        int d2 = 0;
        try {
            double d3 = d1/d2;
            System.out.println(d3);
        } catch (Exception e) {
            System.out.println(e.getMessage());;//输出异常信息
        }
        System.out.println("程序继续执行...");
    }
}
